package one.stand.service;

import com.github.vioao.wechat.bean.response.BaseResponse;
import com.github.vioao.wechat.bean.response.component.wxa.GetAuditstatusResponse;
import com.github.vioao.wechat.bean.response.component.wxa.GetCategoryResponse;
import com.github.vioao.wechat.bean.response.component.wxa.GetPageResponse;
import one.stand.model.CompanyVersionModel;

/**
 * @author: QIK
 * @CreateDate: 2019/5/13 12:00
 */
public interface CodeService {

    /**
     * 代码提交
     * @param appId 授权方appid
     * @param versionId 版本id
     * @param submitAudit true进行发布
     * @return
     */
    BaseResponse commit(String appId,Integer versionId,boolean submitAudit);

    /**
     * 获取体检吗
     * @param appid
     * @return
     */
    String getQrCode(String appid);

    /**
     * 提交审核
     * @return
     */
    BaseResponse submitAudit(Integer versionId,String appId);

    /**
     * 获取小程序栏目
     * @param appid
     * @return
     */
    GetCategoryResponse getCategory(String appid);

    /**
     * 获取页面配置
     * @param appid
     * @return
     */
    GetPageResponse getPage(String appid);

    /**
     * 查询审核结果
     * @param versionId
     * @return
     */
    GetAuditstatusResponse getLatestAuditStatus(Integer versionId,String appId,boolean release);

    /**
     * 发布小程序
     * @return
     */
    BaseResponse release(Integer versionId,String appId);
    BaseResponse release(CompanyVersionModel companyVersionModel);

    /**
     * 撤销审核
     * @return
     */
    BaseResponse undoCodeAudit(String appId);

}
